package com.gugu.procedure.dao;

import com.gugu.procedure.bean.InsideOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface InsideOrderDao extends JpaRepository <InsideOrder, Long>, JpaSpecificationExecutor <InsideOrder> {

    InsideOrder findTopByOrderNo(String orderNo);

    List <InsideOrder> findAllByStatus(String status);

    void deleteAllByOrderNo(String orderNo);

}
